php keep only numbers in string

45

php keep only letters and numbers -

$result = preg_replace("/[^a-zA-Z0-9]+/", "", $s);

Comments

Submit
0 Comments